from django.urls import path
from . import views

urlpatterns = [
    path("", views.index, name="index"),
    path("turn_to/", views.RedirectViewDemo.as_view(), name="turn_to"),
    path("template_demo/", views.TemplateViewDemo.as_view(), name="template_demo"),
    path("person_info/", views.ListViewDemo.as_view(), name="person_info"),
    path("<pk>/<age>.html", views.DetailViewDemo.as_view(), name="detail_demo"),
    path("form_demo/", views.FormViewDemo.as_view(), name="form_demo"),
    path("result/", views.result, name="result"),

    path("create_demo/", views.CreateViewDemo.as_view(), name="create_demo"),
    path("update_demo/<int:pk>/", views.UpdateViewDemo.as_view(), name="update_demo"),
    path("delete_demo/<int:pk>/", views.DeleteViewDemo.as_view(), name="delete_demo"),
]
